﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using Magicodes.ExporterAndImporter.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

/// <summary>
/// 检验项目基础输入参数
/// </summary>
public class inspectionprojectBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>
    public virtual string? projectname { get; set; }
    
    /// <summary>
    /// 检验类型
    /// </summary>
    [Required(ErrorMessage = "检验类型不能为空")]
    public virtual long? inspectionid { get; set; }
    
    /// <summary>
    /// 作业方式
    /// </summary>
    public virtual string? operation { get; set; }
    
    /// <summary>
    /// 标准值
    /// </summary>
    public virtual string? Standard { get; set; }
    
    /// <summary>
    /// 单位
    /// </summary>
    [Dict("unit", AllowNullValue=true)]
    public virtual string? unit { get; set; }
    
    /// <summary>
    /// 上限值
    /// </summary>
    public virtual string? upperlimit { get; set; }
    
    /// <summary>
    /// 下限值
    /// </summary>
    public virtual string? lowerlimit { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    public virtual string? remark { get; set; }
    
}

/// <summary>
/// 检验项目分页查询输入参数
/// </summary>
public class PageinspectionprojectInput : BasePageInput
{
    /// <summary>
    /// 名称
    /// </summary>
    public string? projectname { get; set; }
    
    /// <summary>
    /// 检验类型
    /// </summary>
    public long? inspectionid { get; set; }
    
    /// <summary>
    /// 作业方式
    /// </summary>
    public string? operation { get; set; }
    
    /// <summary>
    /// 标准值
    /// </summary>
    public string? Standard { get; set; }
    
    /// <summary>
    /// 单位
    /// </summary>
    [Dict("unit", AllowNullValue=true)]
    public string? unit { get; set; }
    
    /// <summary>
    /// 上限值
    /// </summary>
    public string? upperlimit { get; set; }
    
    /// <summary>
    /// 下限值
    /// </summary>
    public string? lowerlimit { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    public string? remark { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 检验项目增加输入参数
/// </summary>
public class AddinspectionprojectInput
{
    /// <summary>
    /// 名称
    /// </summary>
    [MaxLength(32, ErrorMessage = "名称字符长度不能超过32")]
    public string? projectname { get; set; }
    
    /// <summary>
    /// 检验类型
    /// </summary>
    [Required(ErrorMessage = "检验类型不能为空")]
    public long? inspectionid { get; set; }
    
    /// <summary>
    /// 作业方式
    /// </summary>
    [MaxLength(32, ErrorMessage = "作业方式字符长度不能超过32")]
    public string? operation { get; set; }
    
    /// <summary>
    /// 标准值
    /// </summary>
    [MaxLength(32, ErrorMessage = "标准值字符长度不能超过32")]
    public string? Standard { get; set; }
    
    /// <summary>
    /// 单位
    /// </summary>
    [Dict("unit", AllowNullValue=true)]
    [MaxLength(32, ErrorMessage = "单位字符长度不能超过32")]
    public string? unit { get; set; }
    
    /// <summary>
    /// 上限值
    /// </summary>
    [MaxLength(32, ErrorMessage = "上限值字符长度不能超过32")]
    public string? upperlimit { get; set; }
    
    /// <summary>
    /// 下限值
    /// </summary>
    [MaxLength(32, ErrorMessage = "下限值字符长度不能超过32")]
    public string? lowerlimit { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(32, ErrorMessage = "备注字符长度不能超过32")]
    public string? remark { get; set; }
    
}

/// <summary>
/// 检验项目删除输入参数
/// </summary>
public class DeleteinspectionprojectInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 检验项目更新输入参数
/// </summary>
public class UpdateinspectionprojectInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>    
    [MaxLength(32, ErrorMessage = "名称字符长度不能超过32")]
    public string? projectname { get; set; }
    
    /// <summary>
    /// 检验类型
    /// </summary>    
    [Required(ErrorMessage = "检验类型不能为空")]
    public long? inspectionid { get; set; }
    
    /// <summary>
    /// 作业方式
    /// </summary>    
    [MaxLength(32, ErrorMessage = "作业方式字符长度不能超过32")]
    public string? operation { get; set; }
    
    /// <summary>
    /// 标准值
    /// </summary>    
    [MaxLength(32, ErrorMessage = "标准值字符长度不能超过32")]
    public string? Standard { get; set; }
    
    /// <summary>
    /// 单位
    /// </summary>    
    [Dict("unit", AllowNullValue=true)]
    [MaxLength(32, ErrorMessage = "单位字符长度不能超过32")]
    public string? unit { get; set; }
    
    /// <summary>
    /// 上限值
    /// </summary>    
    [MaxLength(32, ErrorMessage = "上限值字符长度不能超过32")]
    public string? upperlimit { get; set; }
    
    /// <summary>
    /// 下限值
    /// </summary>    
    [MaxLength(32, ErrorMessage = "下限值字符长度不能超过32")]
    public string? lowerlimit { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>    
    [MaxLength(32, ErrorMessage = "备注字符长度不能超过32")]
    public string? remark { get; set; }
    
}

/// <summary>
/// 检验项目主键查询输入参数
/// </summary>
public class QueryByIdinspectionprojectInput : DeleteinspectionprojectInput
{
}

/// <summary>
/// 下拉数据输入参数
/// </summary>
public class DropdownDatainspectionprojectInput
{
    /// <summary>
    /// 是否用于分页查询
    /// </summary>
    public bool FromPage { get; set; }
}

/// <summary>
/// 检验项目数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportinspectionprojectInput : BaseImportInput
{
    /// <summary>
    /// 名称
    /// </summary>
    [ImporterHeader(Name = "名称")]
    [ExporterHeader("名称", Format = "", Width = 25, IsBold = true)]
    public string? projectname { get; set; }
    
    /// <summary>
    /// 检验类型 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? inspectionid { get; set; }
    
    /// <summary>
    /// 检验类型 文本
    /// </summary>
    [ImporterHeader(Name = "*检验类型")]
    [ExporterHeader("*检验类型", Format = "", Width = 25, IsBold = true)]
    public string inspectionFkDisplayName { get; set; }
    
    /// <summary>
    /// 作业方式
    /// </summary>
    [ImporterHeader(Name = "作业方式")]
    [ExporterHeader("作业方式", Format = "", Width = 25, IsBold = true)]
    public string? operation { get; set; }
    
    /// <summary>
    /// 标准值
    /// </summary>
    [ImporterHeader(Name = "标准值")]
    [ExporterHeader("标准值", Format = "", Width = 25, IsBold = true)]
    public string? Standard { get; set; }
    
    /// <summary>
    /// 单位 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public string? unit { get; set; }
    
    /// <summary>
    /// 单位 文本
    /// </summary>
    [Dict("unit")]
    [ImporterHeader(Name = "单位")]
    [ExporterHeader("单位", Format = "", Width = 25, IsBold = true)]
    public string unitDictLabel { get; set; }
    
    /// <summary>
    /// 上限值
    /// </summary>
    [ImporterHeader(Name = "上限值")]
    [ExporterHeader("上限值", Format = "", Width = 25, IsBold = true)]
    public string? upperlimit { get; set; }
    
    /// <summary>
    /// 下限值
    /// </summary>
    [ImporterHeader(Name = "下限值")]
    [ExporterHeader("下限值", Format = "", Width = 25, IsBold = true)]
    public string? lowerlimit { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [ImporterHeader(Name = "备注")]
    [ExporterHeader("备注", Format = "", Width = 25, IsBold = true)]
    public string? remark { get; set; }
    
}
